<html>
<head>
<title>Edit Person\'s Data</title>
</head>
<body>
hello from update action :
<g:if test="${flash.content }">
	${flash.content }
</g:if>
<g:else>
	${flash.error }
</g:else>
	<g:form name="editPersonForm" action="update">
		<h2>Edit Person's Data</h2>
		<table border="1">
		<tr>
				<th>ID</th>
				<td><g:textField name="id" value="${person.id }" /></td>
			</tr>	
			<tr>
				<th>First Name</th>
				<td><g:textField name="firstName" value="${person.firstName}" />
				</td>
			</tr>
			<tr>
				<th>Last Name</th>
				<td><g:textField name="lastName" value="${person.lastName}" />
				</td>
			</tr>
			<tr>
				<th>Birth Date</th>
				<td><g:datePicker name="birthDate" precision="day" value="${(person.birthDate)}"/></td>
			</tr>
		</table>

		<g:submitButton name="update"  value="update" />

	</g:form>

</body>
</html>